﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/Css/all.css" rel="stylesheet" media="screen" />
    <title>添加文章内容</title>
    <script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.min.js"></script>
    <!-- ckeditor -->
    <script type="text/javascript" src="/Scripts/Cms/ckeditor/ckeditor.js"></script>
    <!-- swfupload 多图上传-->
    <script type="text/javascript" src="/Scripts/Cms/swfupload/swfupload.js"></script>
    <script type="text/javascript" src="/Scripts/Cms/swfupload/handlers-for-article.js"></script>
    <script type="text/javascript" src="/Scripts/Cms/AddArticle.js"></script>
    <script type="text/javascript">
        window.onload = function () {
            //初始化 ckeditor 
            CKEDITOR.replace("ArticleContent", { toolbar: "Full" });

            //初始化 SwfUpload
            InitSwfUpload("@Session.SessionID");
        }
    </script>
</head>
<body>

    <form name="form" action="/Cms/InsertArticleContent" method="post">
    <table class="table" width="100%">
       <tr>
            <td>
               文章标题:&nbsp;<font color='red'>@ViewBag.Title</font>
               <input type="hidden" name="ArticleId" value="@{@ViewBag.ArticleId}" />
            </td>
        </tr>
        <tr>
            <td>
            <div>
                文章内容 第&nbsp;<font color='red'>@{@ViewBag.PageIndex;}</font>&nbsp;页
                <input type="hidden" name="PageIndex" value="@{@ViewBag.PageIndex}" />
            </div>
                <textarea id="ArticleContent" name="ArticleContent" style="width: 99%; height: 100px;">
                </textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <input type="submit" name="BtnSave" value="保 存" />
                <input type="button" name="BtnReturn" value="返 回" onclick="window.location='';" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>

